home *** CD-ROM | disk | FTP | other *** search
- import java.applet.Applet;
- import java.awt.Color;
- import java.awt.Component;
- import java.awt.Event;
- import java.awt.Font;
- import java.awt.FontMetrics;
- import java.awt.Graphics;
- import java.awt.Image;
- import java.awt.MediaTracker;
- import java.io.DataInputStream;
- import java.net.URL;
- import java.net.URLConnection;
- import java.util.Enumeration;
- import java.util.StringTokenizer;
- import java.util.Vector;
-
- public class advtypew extends Applet implements Runnable {
- Thread runner;
- // $FF: renamed from: w int
- int field_0;
- // $FF: renamed from: h int
- int field_1;
- int scroll_delay;
- int border_thickness;
- // $FF: renamed from: i int
- int field_2;
- int num;
- int left_margin;
- int top_margin;
- int right_margin;
- int bottom_margin;
- // $FF: renamed from: a int
- int field_3;
- // $FF: renamed from: b int
- int field_4;
- // $FF: renamed from: c int
- int field_5;
- // $FF: renamed from: j int
- int field_6;
- int bos;
- int pspace;
- int tmaxas;
- int tmaxdes;
- int maxas;
- int maxdes;
- int yspace_text;
- int yspace_title;
- int durum;
- String kelime = "";
- String bgstr = "";
- String regcode = "";
- String infostr = "";
- Color bgc;
- Color titlec;
- Color textc;
- Color htitlec;
- Color htextc;
- Color borderc;
- Color curtitlec;
- Color curtextc;
- String title_align = "";
- String text_align = "";
- // $FF: renamed from: ft java.lang.String
- String field_7 = "";
- // $FF: renamed from: bs java.lang.String
- String field_8 = "";
- String bs2 = "";
- String bosluk = " ";
- String input_text = "";
- String text_file = "";
- String unrega = " Unregistered Advanced Typewriter Scroll Java applet. http://japplets.tripod.com/";
- Font tnf;
- // $FF: renamed from: nf java.awt.Font
- Font field_9;
- FontMetrics tfmetrics;
- FontMetrics fmetrics;
- String[] str;
- String[] links;
- String[] stb;
- String[] tit;
- String[] target_frame;
- int[] dur;
- int[] satirsayh;
- String[][] satirh;
- int[] satirsay;
- String[][] satir;
- StringTokenizer st1;
- StringTokenizer st2;
- StringTokenizer st3;
- // $FF: renamed from: vi int
- int field_10;
- int image_xposition;
- int image_yposition;
- int[][][] xht;
- int[][][] yht;
- int[] ysize;
- int[] ptop;
- int[] pbot;
- int[] pmode;
- // $FF: renamed from: Y int
- int field_11;
- int sdly;
- // $FF: renamed from: m int
- int field_12;
- int linew;
- // $FF: renamed from: cx int
- int field_13;
- // $FF: renamed from: cy int
- int field_14;
- // $FF: renamed from: n int
- int field_15;
- // $FF: renamed from: p int
- int field_16;
- // $FF: renamed from: hp int
- int field_17 = -1;
- int ilk;
- // $FF: renamed from: rg boolean
- boolean field_18 = false;
- boolean bfile = false;
- boolean bgbool = false;
- boolean stbstatus = false;
- boolean whb = false;
- Image offimg;
- Image offimg2;
- Image offimg3;
- Image bgimage;
- Image bosimg;
- Graphics offg;
- Graphics offg2;
- Graphics offg3;
- // $FF: renamed from: u java.net.URL
- URL field_19;
- Vector vect;
- int bdes;
- int tpy;
- int type_delay;
- int csat;
- int cpar;
- int satpar;
- int cchar;
- int anims;
- char[] harfler;
- String cstr = "";
-
- public void init() {
- ((Component)this).setBackground(Color.white);
- this.whb = false;
- this.ilk = 0;
- this.field_17 = -1;
- this.field_14 = -1000;
- this.vect = new Vector();
- this.regcode = ((Applet)this).getParameter("regcode");
- if (this.regcode != null && (this.regcode.equals("typ5834ws") || this.regcode.equals("coghkr5u8"))) {
- this.field_18 = true;
- }
-
- this.infostr = ((Applet)this).getParameter("info");
- if (!this.infostr.equals("Applet by Gokhan Dagli,japplets.tripod.com")) {
- this.durum = 1;
- }
-
- this.bgc = new Color(this.method_0("bgcolor", 16, 16777215));
- this.titlec = new Color(this.method_0("title_color", 16, 0));
- this.textc = new Color(this.method_0("text_color", 16, 0));
- this.htitlec = new Color(this.method_0("highlight_title_color", 16, 0));
- this.htextc = new Color(this.method_0("highlight_text_color", 16, 0));
- this.bgstr = ((Applet)this).getParameter("bgimage");
- if (this.bgstr == null) {
- this.bgbool = false;
- } else if (this.bgstr.endsWith(".gif") || this.bgstr.endsWith(".GIF") || this.bgstr.endsWith(".jpg") || this.bgstr.endsWith(".JPG")) {
- this.bgbool = true;
- }
-
- ((Component)this).show();
- if (this.bgbool) {
- MediaTracker var1 = new MediaTracker(this);
- this.bgimage = ((Applet)this).getImage(((Applet)this).getCodeBase(), "" + this.bgstr);
- var1.addImage(this.bgimage, 1);
-
- try {
- var1.waitForAll();
- } catch (InterruptedException var5) {
- }
-
- this.image_xposition = this.method_0("image_xposition", 10, 0);
- this.image_yposition = this.method_0("image_yposition", 10, 0);
- }
-
- this.title_align = this.stp("title_align", "left");
- this.text_align = this.stp("text_align", "left");
- this.field_7 = this.stp("title_font_type", "Arial");
- this.tnf = new Font(this.field_7, this.method_0("title_font_style", 10, 1), this.method_0("title_font_size", 10, 12));
- this.tfmetrics = ((Component)this).getFontMetrics(this.tnf);
- this.field_7 = this.stp("text_font_type", "Arial");
- this.field_9 = new Font(this.field_7, this.method_0("text_font_style", 10, 1), this.method_0("text_font_size", 10, 12));
- this.fmetrics = ((Component)this).getFontMetrics(this.field_9);
- this.scroll_delay = this.method_0("scroll_delay", 10, 30);
- this.type_delay = this.method_0("type_delay", 10, 30);
- this.border_thickness = this.method_0("border_thickness", 10, 0);
- this.borderc = new Color(this.method_0("border_color", 16, 0));
- this.input_text = this.stp("input_text", "from_parameters");
- this.text_file = this.stp("text_file", "input.txt");
- if (this.input_text.equals("from_file")) {
- this.bfile = true;
- } else {
- this.bfile = false;
- }
-
- if (this.bfile) {
- try {
- URLConnection var2 = (new URL(((Applet)this).getCodeBase(), "" + this.text_file)).openConnection();
- var2.setDoInput(true);
- var2.setUseCaches(false);
- DataInputStream var7 = new DataInputStream(var2.getInputStream());
- this.field_2 = 1;
-
- while(true) {
- this.field_8 = var7.readLine();
- if (this.field_8 == null) {
- --this.field_2;
- if (this.field_2 < 0) {
- this.field_2 = 0;
- }
- break;
- }
-
- if (this.field_8.trim().equals("") || this.field_8.length() <= 3) {
- --this.field_2;
- if (this.field_2 < 0) {
- this.field_2 = 0;
- }
- break;
- }
-
- this.vect.addElement("" + this.field_8);
- ++this.field_2;
- }
-
- this.num = this.field_2;
- } catch (Exception var6) {
- }
- } else {
- this.field_2 = 1;
-
- while(true) {
- this.field_8 = ((Applet)this).getParameter("text" + this.field_2);
- this.bs2 = ((Applet)this).getParameter("title" + this.field_2);
- if (this.field_8 == null && this.bs2 == null) {
- --this.field_2;
- if (this.field_2 < 0) {
- this.field_2 = 0;
- }
- break;
- }
-
- if (this.field_8.trim().equals("") && this.bs2.trim().equals("")) {
- --this.field_2;
- if (this.field_2 < 0) {
- this.field_2 = 0;
- }
- break;
- }
-
- ++this.field_2;
- }
-
- this.num = this.field_2;
- }
-
- this.str = new String[this.num + 1];
- this.links = new String[this.num + 1];
- this.stb = new String[this.num + 1];
- this.tit = new String[this.num + 1];
- this.dur = new int[this.num + 1];
- this.target_frame = new String[this.num + 1];
- this.satirsayh = new int[this.num + 1];
- this.satirh = new String[this.num + 1][101];
- this.satir = new String[this.num + 1][101];
- this.satirsay = new int[this.num + 1];
- this.xht = new int[2][this.num + 1][101];
- this.yht = new int[2][this.num + 1][101];
- this.ysize = new int[this.num + 1];
- this.ptop = new int[this.num + 1];
- this.pbot = new int[this.num + 1];
- this.pmode = new int[this.num + 1];
- this.harfler = new char[300];
- this.field_6 = 1;
- if (this.bfile) {
- Enumeration var8 = this.vect.elements();
-
- for(String var9 = ""; var8.hasMoreElements(); ++this.field_6) {
- var9 = (String)var8.nextElement();
- StringTokenizer var3 = new StringTokenizer(var9, "|", true);
- int var4 = 0;
-
- while(var3.hasMoreTokens()) {
- this.field_8 = var3.nextToken();
- if (this.field_8.equals("|")) {
- ++var4;
- } else {
- if (var4 == 0) {
- this.tit[this.field_6] = this.field_8;
- }
-
- if (var4 == 1) {
- this.str[this.field_6] = this.field_8;
- }
-
- if (var4 == 2) {
- this.links[this.field_6] = this.field_8;
- }
-
- if (var4 == 3) {
- this.target_frame[this.field_6] = this.field_8;
- }
- }
- }
- }
- }
-
- for(this.field_2 = 1; this.field_2 <= this.num; ++this.field_2) {
- if (!this.bfile) {
- this.str[this.field_2] = ((Applet)this).getParameter("text" + this.field_2);
- this.tit[this.field_2] = ((Applet)this).getParameter("title" + this.field_2);
- this.links[this.field_2] = ((Applet)this).getParameter("link" + this.field_2);
- this.target_frame[this.field_2] = ((Applet)this).getParameter("target_frame" + this.field_2);
- }
-
- if (this.str[this.field_2] == null) {
- this.str[this.field_2] = "";
- }
-
- if (this.tit[this.field_2] == null) {
- this.tit[this.field_2] = "";
- }
-
- if (this.links[this.field_2] == null) {
- this.links[this.field_2] = "";
- }
-
- if (this.target_frame[this.field_2] == null) {
- this.target_frame[this.field_2] = "_self";
- }
-
- if (this.links[this.field_2] == null) {
- this.links[this.field_6] = "";
- this.dur[this.field_2] = 0;
- } else {
- this.dur[this.field_2] = 1;
- if (this.links[this.field_2].trim().equals("")) {
- this.dur[this.field_2] = 0;
- }
- }
-
- if (this.dur[this.field_2] == 0) {
- this.stb[this.field_2] = "";
- } else {
- if (this.target_frame[this.field_2] == null) {
- this.target_frame[this.field_2] = "_self";
- } else if (this.target_frame[this.field_2].trim().equals("")) {
- this.target_frame[this.field_2] = "_self";
- }
-
- if (this.links[this.field_2].startsWith("http://")) {
- this.stb[this.field_2] = this.links[this.field_2];
- } else {
- this.stb[this.field_2] = "" + ((Applet)this).getCodeBase() + "" + this.links[this.field_2];
- }
- }
- }
-
- this.tmaxas = this.tfmetrics.getAscent();
- this.tmaxdes = this.tfmetrics.getDescent();
- this.maxas = this.fmetrics.getAscent();
- this.maxdes = this.fmetrics.getDescent();
- this.bdes = Math.max(this.tmaxdes, this.maxdes);
- this.left_margin = this.method_0("left_margin", 10, 0);
- this.top_margin = this.method_0("top_margin", 10, 0);
- this.right_margin = this.method_0("right_margin", 10, 0);
- this.bottom_margin = this.method_0("bottom_margin", 10, 0);
- this.yspace_title = this.method_0("title_linespace", 10, 0);
- this.yspace_text = this.method_0("text_linespace", 10, 0);
- this.pspace = this.method_0("vertical_space", 10, 20);
- }
-
- // $FF: renamed from: fi (java.lang.String, int, int) int
- public int method_0(String var1, int var2, int var3) {
- int var4 = 0;
- var1 = ((Applet)this).getParameter("" + var1);
- if (var1 == null) {
- return var3;
- } else {
- try {
- var4 = Integer.parseInt(var1, var2);
- } catch (Exception var5) {
- var4 = var3;
- }
-
- return var4;
- }
- }
-
- public String stp(String var1, String var2) {
- var1 = ((Applet)this).getParameter("" + var1);
- return var1 == null ? var2 : var1;
- }
-
- public void typer() {
- String var1 = "";
- this.ptop[this.field_2] = this.field_10;
-
- for(this.field_6 = 1; this.field_6 <= this.satirsayh[this.field_2]; ++this.field_6) {
- int var2 = this.left_margin;
- var1 = this.satirh[this.field_2][this.field_6];
- this.field_10 += this.tmaxas;
- int var3 = this.tfmetrics.stringWidth(var1);
- if (this.title_align.equals("center")) {
- var2 = (this.field_0 - this.left_margin - this.right_margin - var3) / 2 + this.left_margin;
- }
-
- if (this.title_align.equals("right")) {
- var2 = this.field_0 - var3;
- }
-
- this.xht[1][this.field_2][this.field_6] = var2;
- this.yht[1][this.field_2][this.field_6] = this.field_10;
- if (this.ilk == 0) {
- this.ilk = this.field_10;
- }
-
- this.field_10 = this.field_10 + this.tmaxdes + this.yspace_title;
- }
-
- for(this.field_6 = 1; this.field_6 <= this.satirsay[this.field_2]; ++this.field_6) {
- int var6 = this.left_margin;
- var1 = this.satir[this.field_2][this.field_6];
- this.field_10 += this.maxas;
- int var7 = this.fmetrics.stringWidth(var1);
- if (this.text_align.equals("center")) {
- var6 = (this.field_0 - this.left_margin - this.right_margin - var7) / 2 + this.left_margin;
- }
-
- if (this.text_align.equals("right")) {
- var6 = this.field_0 - var7;
- }
-
- if (this.durum == 1) {
- this.satir[this.field_2][this.field_6] = "info parameter error!";
- }
-
- this.xht[0][this.field_2][this.field_6] = var6;
- this.yht[0][this.field_2][this.field_6] = this.field_10;
- if (this.ilk == 0) {
- this.ilk = this.field_10;
- }
-
- this.field_10 = this.field_10 + this.maxdes + this.yspace_text;
- }
-
- this.pbot[this.field_2] = this.field_10;
- this.field_10 += this.pspace;
- }
-
- public void update(Graphics var1) {
- if (this.whb) {
- this.offg2.drawImage(this.bosimg, 0, 0, this);
-
- for(this.field_2 = 1; this.field_2 <= this.num; ++this.field_2) {
- for(this.field_6 = 1; this.field_6 <= this.satirsayh[this.field_2]; ++this.field_6) {
- if (this.satpar != 0 || this.field_6 != this.csat || this.field_2 != this.cpar) {
- this.offg2.setFont(this.tnf);
- if (this.field_2 == this.field_17 && this.dur[this.field_2] == 1) {
- this.curtitlec = this.htitlec;
- } else {
- this.curtitlec = this.titlec;
- }
-
- this.offg2.setColor(this.curtitlec);
- if (this.yht[1][this.field_2][this.field_6] + this.field_11 + this.tmaxdes >= 0 && this.yht[1][this.field_2][this.field_6] + this.field_11 - this.tmaxas < this.field_1) {
- this.offg2.drawString(this.satirh[this.field_2][this.field_6], 0, this.field_11 + this.yht[1][this.field_2][this.field_6]);
- }
- }
- }
-
- for(this.field_6 = 1; this.field_6 <= this.satirsay[this.field_2]; ++this.field_6) {
- if (this.satpar != 1 || this.field_6 != this.csat || this.field_2 != this.cpar) {
- this.offg2.setFont(this.field_9);
- if (this.field_2 == this.field_17 && this.dur[this.field_2] == 1) {
- this.curtextc = this.htextc;
- } else {
- this.curtextc = this.textc;
- }
-
- this.offg2.setColor(this.curtextc);
- if (this.yht[0][this.field_2][this.field_6] + this.field_11 + this.maxdes >= 0 && this.yht[0][this.field_2][this.field_6] + this.field_11 - this.maxas < this.field_1) {
- this.offg2.drawString(this.satir[this.field_2][this.field_6], 0, this.field_11 + this.yht[0][this.field_2][this.field_6]);
- }
- }
- }
- }
-
- if (this.anims == 0) {
- if (this.satpar == 0) {
- this.offg2.setFont(this.tnf);
- if (this.cpar == this.field_17 && this.dur[this.field_17] == 1) {
- this.curtitlec = this.htitlec;
- } else {
- this.curtitlec = this.titlec;
- }
-
- this.offg2.setColor(this.curtitlec);
- } else {
- this.offg2.setFont(this.field_9);
- if (this.cpar == this.field_17 && this.dur[this.field_17] == 1) {
- this.curtextc = this.htextc;
- } else {
- this.curtextc = this.textc;
- }
-
- this.offg2.setColor(this.curtextc);
- }
-
- this.offg2.drawChars(this.harfler, 0, this.cchar, 0, this.tpy);
- }
-
- this.offg.drawImage(this.offimg2, this.left_margin, this.top_margin, this);
- this.paint(var1);
- }
-
- }
-
- public void paint(Graphics var1) {
- if (this.whb) {
- var1.drawImage(this.offimg, 0, 0, this);
- }
-
- }
-
- public boolean mouseExit(Event var1, int var2, int var3) {
- if (this.whb) {
- this.field_13 = -1;
- this.field_14 = -1000;
- this.field_17 = -1;
- ((Applet)this).showStatus("");
- ((Component)this).repaint();
- }
-
- return true;
- }
-
- public boolean mouseMove(Event var1, int var2, int var3) {
- if (this.whb) {
- this.field_13 = var2;
- this.field_14 = var3;
- this.field_17 = -1;
-
- for(this.field_16 = 1; this.field_16 <= this.num; ++this.field_16) {
- if (this.field_11 + this.ptop[this.field_16] + this.top_margin <= this.field_14 && this.field_11 + this.pbot[this.field_16] + this.top_margin >= this.field_14) {
- this.field_17 = this.field_16;
- }
- }
-
- if (this.field_17 != -1) {
- if (this.dur[this.field_17] == 1 && !this.stbstatus) {
- ((Applet)this).showStatus("" + this.stb[this.field_17]);
- this.stbstatus = true;
- }
- } else if (this.stbstatus) {
- if (this.field_18) {
- ((Applet)this).showStatus("");
- } else {
- ((Applet)this).showStatus("" + this.unrega);
- }
-
- this.stbstatus = false;
- }
-
- ((Component)this).repaint();
- }
-
- return true;
- }
-
- public boolean mouseUp(Event var1, int var2, int var3) {
- if (this.whb) {
- if (this.field_17 == -1) {
- return true;
- }
-
- if (this.dur[this.field_17] == 0) {
- return true;
- }
-
- try {
- if (this.links[this.field_17].startsWith("http://")) {
- this.field_19 = new URL("" + this.links[this.field_17]);
- } else {
- this.field_19 = new URL(((Applet)this).getCodeBase(), "" + this.links[this.field_17]);
- }
- } catch (Exception var4) {
- return true;
- }
-
- ((Applet)this).getAppletContext().showDocument(this.field_19, this.target_frame[this.field_17]);
- }
-
- return true;
- }
-
- public void start() {
- if (this.runner == null) {
- this.runner = new Thread(this);
- this.runner.start();
- } else {
- this.runner.resume();
- }
- }
-
- public void stop() {
- if (this.runner != null) {
- this.runner.stop();
- this.runner = null;
- }
-
- }
-
- public void destroy() {
- this.runner = null;
- }
-
- public void run() {
- ((Component)this).show();
- this.field_0 = ((Component)this).size().width;
- this.field_1 = ((Component)this).size().height;
- if (!this.whb) {
- this.field_11 = this.tpy;
-
- for(this.field_2 = 1; this.field_2 <= this.num; ++this.field_2) {
- this.field_3 = 1;
- this.field_4 = 0;
- this.field_5 = this.field_0 - this.left_margin - this.right_margin;
- this.st3 = new StringTokenizer(this.tit[this.field_2], "#");
- this.field_6 = 1;
- this.bos = this.tfmetrics.stringWidth(this.bosluk);
- this.satirh[this.field_2][1] = "";
-
- while(this.st3.hasMoreTokens()) {
- this.field_8 = this.st3.nextToken();
-
- for(this.st2 = new StringTokenizer(this.field_8, " "); this.st2.hasMoreTokens(); ++this.field_6) {
- this.kelime = this.st2.nextToken();
- if (this.tfmetrics.stringWidth(this.satirh[this.field_2][this.field_3]) + this.tfmetrics.stringWidth(this.kelime) + this.bos <= this.field_5) {
- this.satirh[this.field_2][this.field_3] = this.satirh[this.field_2][this.field_3] + this.kelime + " ";
- } else {
- ++this.field_3;
- this.satirh[this.field_2][this.field_3] = "";
- this.satirh[this.field_2][this.field_3] = this.satirh[this.field_2][this.field_3] + this.kelime + " ";
- }
- }
-
- if (!this.field_8.trim().equals("") || !this.tit[this.field_2].trim().equals("")) {
- ++this.field_3;
- this.satirh[this.field_2][this.field_3] = "";
- }
- }
-
- this.satirsayh[this.field_2] = this.field_3 - 1;
- this.field_3 = 1;
- this.field_4 = 0;
- this.st3 = new StringTokenizer(this.str[this.field_2], "#");
- this.field_6 = 1;
- this.bos = this.fmetrics.stringWidth(this.bosluk);
- this.satir[this.field_2][1] = "";
-
- while(this.st3.hasMoreTokens()) {
- this.field_8 = this.st3.nextToken();
-
- for(this.st2 = new StringTokenizer(this.field_8, " "); this.st2.hasMoreTokens(); ++this.field_6) {
- this.kelime = this.st2.nextToken();
- if (this.fmetrics.stringWidth(this.satir[this.field_2][this.field_3]) + this.fmetrics.stringWidth(this.kelime) + this.bos <= this.field_5) {
- this.satir[this.field_2][this.field_3] = this.satir[this.field_2][this.field_3] + this.kelime + " ";
- } else {
- ++this.field_3;
- this.satir[this.field_2][this.field_3] = "";
- this.satir[this.field_2][this.field_3] = this.satir[this.field_2][this.field_3] + this.kelime + " ";
- }
- }
-
- if (!this.field_8.trim().equals("") || !this.str[this.field_2].trim().equals("")) {
- ++this.field_3;
- this.satir[this.field_2][this.field_3] = "";
- }
- }
-
- this.satirsay[this.field_2] = this.field_3 - 1;
- this.ysize[this.field_2] = this.satirsay[this.field_2] * (this.tmaxas + this.tmaxdes) + (this.satirsay[this.field_2] - 1) * this.yspace_text + this.satirsayh[this.field_2] * (this.maxas + this.maxdes) + this.satirsayh[this.field_2] * this.yspace_title;
- }
-
- this.field_10 = 0;
-
- for(this.field_2 = 1; this.field_2 <= this.num; ++this.field_2) {
- this.typer();
- }
-
- this.sdly = this.scroll_delay;
- this.offimg = ((Component)this).createImage(this.field_0, this.field_1);
- this.offg = this.offimg.getGraphics();
- this.offg.clipRect(0, 0, this.field_0, this.field_1);
- this.offimg2 = ((Component)this).createImage(this.field_0 - this.left_margin - this.right_margin, this.field_1 - this.top_margin - this.bottom_margin);
- this.offg2 = this.offimg2.getGraphics();
- this.offg2.clipRect(0, 0, this.field_0 - this.left_margin - this.right_margin, this.field_1 - this.top_margin - this.bottom_margin);
- this.offg.setColor(this.bgc);
- this.offg.fillRect(0, 0, this.field_0, this.field_1);
- if (this.bgbool) {
- this.offg.drawImage(this.bgimage, this.image_xposition, this.image_yposition, this);
- }
-
- this.offg2.drawImage(this.offimg, -1 * this.left_margin, -1 * this.top_margin, this);
- this.bosimg = ((Component)this).createImage(this.offimg2.getSource());
- if (this.border_thickness > 0) {
- this.offg.setColor(this.borderc);
-
- for(this.field_12 = 1; this.field_12 <= this.border_thickness; ++this.field_12) {
- this.offg.drawRect(this.field_12 - 1, this.field_12 - 1, this.field_0 - 2 * this.field_12 + 1, this.field_1 - 2 * this.field_12 + 1);
- }
- }
-
- this.offg.clipRect(this.border_thickness, this.border_thickness, this.field_0 - 2 * this.border_thickness, this.field_1 - 2 * this.border_thickness);
- System.gc();
- }
-
- this.whb = true;
- this.field_17 = -1;
- this.field_14 = -1000;
- this.sdly = this.type_delay;
- this.csat = 1;
- this.cpar = 1;
- this.satpar = 0;
- this.cchar = 0;
- this.anims = 0;
- this.tpy = this.field_1 - this.bottom_margin - this.top_margin - this.bdes;
- this.field_11 = this.tpy - this.ilk;
-
- while(true) {
- if (this.satpar == 0) {
- if (this.satirsayh[this.cpar] <= 0) {
- this.satpar = 1;
- this.csat = 1;
- continue;
- }
- } else if (this.satirsay[this.cpar] <= 0) {
- this.satpar = 0;
- ++this.cpar;
- this.csat = 1;
- if (this.cpar > this.num) {
- this.cpar = 1;
- }
- continue;
- }
-
- if (this.anims == 0) {
- this.sdly = this.type_delay;
- ++this.cchar;
- if (this.satpar == 0) {
- if (this.cchar > this.satirh[this.cpar][this.csat].length()) {
- this.cchar = 0;
- ++this.csat;
- if (this.csat > this.satirsayh[this.cpar]) {
- this.csat = 1;
- this.satpar = 1;
- }
-
- this.anims = 1;
- }
-
- this.cstr = this.satirh[this.cpar][this.csat];
- } else {
- if (this.cchar > this.satir[this.cpar][this.csat].length()) {
- this.cchar = 0;
- ++this.csat;
- if (this.csat > this.satirsay[this.cpar]) {
- this.csat = 1;
- this.satpar = 0;
- ++this.cpar;
- if (this.cpar > this.num) {
- this.cpar = 1;
- }
- }
-
- this.anims = 1;
- }
-
- this.cstr = this.satir[this.cpar][this.csat];
- }
-
- this.harfler = this.cstr.toCharArray();
- } else {
- this.sdly = this.scroll_delay;
- --this.field_11;
- if (this.field_11 < -this.field_10) {
- this.field_11 = this.tpy - this.ilk;
- this.anims = 0;
- }
-
- if (this.satpar == 0) {
- if (this.field_11 + this.yht[1][this.cpar][this.csat] == this.tpy) {
- this.anims = 0;
- }
- } else if (this.field_11 + this.yht[0][this.cpar][this.csat] == this.tpy) {
- this.anims = 0;
- }
- }
-
- this.field_17 = -1;
-
- for(this.field_16 = 1; this.field_16 <= this.num; ++this.field_16) {
- if (this.field_11 + this.ptop[this.field_16] + this.top_margin <= this.field_14 && this.field_11 + this.pbot[this.field_16] + this.top_margin >= this.field_14) {
- this.field_17 = this.field_16;
- }
- }
-
- if (this.field_17 != -1) {
- if (this.dur[this.field_17] == 1 && !this.stbstatus) {
- ((Applet)this).showStatus("" + this.stb[this.field_17]);
- this.stbstatus = true;
- }
- } else if (this.stbstatus) {
- if (this.field_18) {
- ((Applet)this).showStatus("");
- } else {
- ((Applet)this).showStatus("" + this.unrega);
- }
-
- this.stbstatus = false;
- }
-
- ((Component)this).repaint();
-
- try {
- Thread.sleep((long)this.sdly);
- } catch (InterruptedException var1) {
- }
- }
- }
- }
-